package com.google.code.sip.ucenter.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.code.sip.core.dao.Page;
import com.google.code.sip.ucenter.dao.mongo.CreditLogDaoImpl;
import com.google.code.sip.ucenter.model.CreditLog;
import com.google.code.sip.ucenter.service.CreditLogManager;

@Service("creditLogManager")
public class CreditLogManagerImpl implements CreditLogManager {

	@Autowired
	private CreditLogDaoImpl creditLogDao;

	@Override
	public Page<CreditLog> getAllCreditLogs(Page<CreditLog> page) {
		return creditLogDao.findByPage(page);
	}

	@Override
	public CreditLog getCreditLog(String id) {
		return creditLogDao.get(id);
	}

}
